{% extends "hometeacher.html" %}

{% block title %}Create Exam{% endblock %}

{% block teachercontent %}
    <form action="/CreateExam/" method="post">{% csrf_token %}
        {{ form.as_p }}
        <input type="submit" value="Submit" />
    </form>

{% comment %}
    <form action="/CreateExam/" method="post">{% csrf_token %}
        {{ form.non_field_errors }}
        <div class="fieldWrapper">
            {{ form.subject.errors }}
            <label for="id_name">Name:</label>
            {{ form.name }}
        </div>
        <div class="fieldWrapper">
            {{ form.message.errors }}
            <label for="id_description">Description:</label>
            {{ form.description }}
        </div>
        <div class="fieldWrapper">
            {{ form.sender.errors }}
            <label for="id_deadline">Deadline:</label>
            {{ form.deadline }}
        </div>
        <p><input type="submit" value="Submit" /></p>
    </form>
    {% endcomment %}
    <script>
        $('#id_deadline').datetimepicker({
            dateFormat: 'yy-mm-dd',
            timeFormat: 'hh:mm:ss'
        });
    </script>
{% endblock %}

